package com.example.cunion.mapper;

import com.example.cunion.entity.Advertisement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.HashMap;
import java.util.List;

/**
* @author Aero
* @description 针对表【advertisement(广告表)】的数据库操作Mapper
* @createDate 2023-10-22 23:43:49
* @Entity com.example.cunion.entity.Advertisement
*/
public interface AdvertisementMapper extends BaseMapper<Advertisement> {

    List<HashMap> searchUnCheckAdvertisementByPage(HashMap map);

    List<HashMap> searchUnCheckAdminAdvertisementByPage(HashMap map);

    Integer agreeAdvertisement(String id);

    Integer rejectAdvertisement(String id);

    Integer addAdvertisement(HashMap map);

    Integer updateAdvertisementStatus(HashMap map);

}




